<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="StyleSheet" href="style.css" type="text/css" media="screen">
<link rel="shortcut icon" href="websigned2.ico">
<title>Web-Signed Calendar Adding Event</title>
</head>

<body>
<%@ page import="java.util.*,java.text.*,apps.Events"%>

<div class="banner">
<h1><a href="websignedteam.html"><img src="webimage.jpg"
	border="0" alt=""> </a>Add Your Event</h1>
<hr>
</div>

<%
	String[] months = { "January", "February", "March", "April", "May",
			"June", "July", "August", "September", "October",
			"November", "December" };

	int dom[] = { 31, 28, 31, /* jan, feb, mar */
	30, 31, 30, /* apr, may, jun */
	31, 31, 30, /* jul, aug, sep */
	31, 30, 31 /* oct, nov, dec */
	};
%>
<form name="EventForm" action="CreateEvent" method="POST">
<div id="EventForm">
<p>Start Date:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
End Date: <br>
<select name="startYear">
	<%
		for (int i = 2008; i < 2030; i++) {
	%>
	<option value="<%=i - 1900%>"><%=i%></option>
	<%
		}
	%>
</select> <select name="startMonth">
	<%
		for (int i = 0; i < months.length; i++) {
	%>
	<option value="<%=i%>"><%=months[i]%></option>
	<%
		}
	%>
</select> <select name="startDate">
	<%
		for (int i = 0; i <= dom[0]; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="endYear">
	<%
		for (int i = 2008; i < 2030; i++) {
	%>
	<option value="<%=i - 1900%>"><%=i%></option>
	<%
		}
	%>
</select> <select name="endMonth">
	<%
		for (int i = 0; i < months.length; i++) {
	%>
	<option value="<%=i%>"><%=months[i]%></option>
	<%
		}
	%>
</select> <select name="endDate">
	<%
		for (int i = 0; i <= dom[0]; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select></p>
<p>Start time:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
End time:<br>
<select name="startHr">
	<%
		for (int i = 0; i <= 23; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select> <select name="startMin">
	<%
		for (int i = 0; i <= 60; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select name="endHr">
	<%
		for (int i = 0; i <= 23; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select> <select name="endMin">
	<%
		for (int i = 0; i <= 60; i++) {
	%>
	<option value="<%=i%>"><%=i%></option>
	<%
		}
	%>
</select></p>

<p>Description of the event:<br>
<textarea id="Edescription" name="description" cols="" rows=""> </textarea>
</p>

<p>List people you want to invite:<br>
<textarea id="Username" name="parties" cols="" rows=""> </textarea></p>

<p><input type="submit" value="Submit" class = "submit">
<a href ="/Calendar/Calendar.jsp"><input type="submit" value="Cancel" class = "submit"></p>
</div>

</form>
</body>
</html>